package sharding

import cmap "github.com/orcaman/concurrent-map"

var (
	// 缓存sql解析树
	astCache = cmap.New[string]()
)

func PutAst(md5 string, ast interface{}) {
	astCache.Set(md5, ast)
}

func GetAst(md5 string) (interface{}, bool) {
	return astCache.Get(md5)
}
